package com.java.tutorials.Class.anonymous;

/**
 * Created by xuzhike on 2016/3/14.
 * http://www.java2s.com/Code/Java/Class/Accessinnerclassfromoutside.htm
 * Access inner class from outside
 */
public class InnerClass {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.new Inner().hello();
    }
}
class Outer {
    public class Inner {
        public void hello(){
            System.out.println("Hello from Inner()");
        }
    }
}
